package com.zhq.zhq_blog.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhq.zhq_blog.entity.Blog;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  博客服务类
 * </p>
 */
public interface IBlogService extends IService<Blog> {
    Blog queryBlogById(int id);
    List<Blog> queryAll();
    IPage<Blog> queryPage(Page<Blog> page, QueryWrapper<Blog> queryWrapper);
    IPage<Blog> queryCollectPage(Page<Blog> page, QueryWrapper<Blog> queryWrapper, int userId);
    IPage<Blog> queryPraisePage(Page<Blog> page, QueryWrapper<Blog> queryWrapper, int userId);
}
